package com.jk.vehicle.mini.service;

import com.jk.vehicle.mini.entity.ElectricBicycle;
import com.jk.vehicle.core.service.Service;
import com.jk.vehicle.mini.vo.BicycleDetailOfUserVO;
import com.jk.vehicle.mini.vo.BicycleLinkIdVO;
import com.jk.vehicle.mini.vo.BicycleOfUserVO;

import java.util.List;
import java.util.Map;

/**
 * This is Description for ElectricBicycleService
 *
 * @author Administrator
 * @date 2021/02/07
 */
public interface ElectricBicycleService extends Service<ElectricBicycle> {
    /**
    * 根据查询条件查询单表数据
    * @param paramMap 查询条件
    * @return 查询结果
    */
    List<ElectricBicycle> queryByParams(Map<String, Object> paramMap);

    /**
     * 根据车辆id查询对应的型号id、厂家id
     * @param bicycleId 车辆id
     * @return 结果
     */
    List<BicycleLinkIdVO> queryBicycleLinkId(Long bicycleId, String dsName);

    /**
     * 查询用户关联的车辆信息
     * @param userId 用户ID
     * @return 结果
     */
    List<BicycleOfUserVO> queryBicycleOfUser(Long userId, String dsName);

    /**
     * 查询用户关联的车辆信息
     * @param userId 用户ID
     * @return 结果
     */
    List<BicycleDetailOfUserVO> queryBicycleDetailOfUser(Long userId, Long corpId, String dsName);
}